window.main = window.main || {};
qinglan.Canvas.World.globalRes.loadImg(qinglan.Canvas.Config.resource.img, function(img, percent, isload) {
	console.log(img.src + ' ' + percent + ' ' + isload);

	var aimg_stay = new qinglan.Canvas.AnimateImg('hakurei', new qinglan.Canvas.Vector2(10, 10), img, {
		frame: 8,
		view: new qinglan.Canvas.Vector2(33, 47),
		warp: new qinglan.Canvas.Vector2(32, 0),
		durationFrames: 35
	});
	var aimg_left = new qinglan.Canvas.AnimateImg('hakurei_left', new qinglan.Canvas.Vector2(10, 60), img, {
		frame: 8,
		view: new qinglan.Canvas.Vector2(33, 47),
		warp: new qinglan.Canvas.Vector2(32, 0),
		offset: new qinglan.Canvas.Vector2(0, 47 * 1),
		sRepeat : false,
		durationFrames: 35
	});
	var aimg_right = new qinglan.Canvas.AnimateImg('hakurei_right', new qinglan.Canvas.Vector2(10, 110), img, {
		frame: 8,
		view: new qinglan.Canvas.Vector2(33, 47),
		warp: new qinglan.Canvas.Vector2(32, 0),
		offset: new qinglan.Canvas.Vector2(0, 47 * 2),
		sRepeat : false,
		durationFrames: 35
	});

	main.layer.addSprite(aimg_stay);
	main.layer.addSprite(aimg_left);
	main.layer.addSprite(aimg_right);
	qinglan.Canvas.World.frm.addLayer(main.layer);
	qinglan.Canvas.World.frm.star();
});
main.layer = new qinglan.Canvas.Layer('main', 1)

main.pre = function() {

};

main.init = function() {

};
